package com.ruoyi.userManage.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户信息对象 t_user
 * 
 * @author ruoyi
 * @date 2025-08-12
 */
public class User extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @Excel(name = "ID")
    private Long id;

    /** unionid */
    private String unionid;

    /** 微信小程序openid */
    private String jsapiOpenId;

    /** 微信APPopenid */
    private String appOpenId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 昵称 */
    @Excel(name = "昵称")
    private String name;

    /** 头像 */
    @Excel(name = "头像")
    private String avatar;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 支付密码 */
    @Excel(name = "支付密码")
    private String payPass;

    /** 余额 */
    @Excel(name = "余额")
    private BigDecimal balance;

    /** 漫券 */
    @Excel(name = "漫券")
    private BigDecimal ticket;

    /** 邀请码 */
    @Excel(name = "邀请码")
    private String invitationCode;

    /** 上级邀请码 */
    @Excel(name = "上级邀请码")
    private String parentInvitationCode;

    /** 状态 */
    @Excel(name = "状态")
    private Integer isDelete;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUnionid(String unionid) 
    {
        this.unionid = unionid;
    }

    public String getUnionid() 
    {
        return unionid;
    }

    public void setJsapiOpenId(String jsapiOpenId) 
    {
        this.jsapiOpenId = jsapiOpenId;
    }

    public String getJsapiOpenId() 
    {
        return jsapiOpenId;
    }

    public void setAppOpenId(String appOpenId) 
    {
        this.appOpenId = appOpenId;
    }

    public String getAppOpenId() 
    {
        return appOpenId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setPayPass(String payPass) 
    {
        this.payPass = payPass;
    }

    public String getPayPass() 
    {
        return payPass;
    }

    public void setBalance(BigDecimal balance) 
    {
        this.balance = balance;
    }

    public BigDecimal getBalance() 
    {
        return balance;
    }

    public void setTicket(BigDecimal ticket) 
    {
        this.ticket = ticket;
    }

    public BigDecimal getTicket() 
    {
        return ticket;
    }

    public void setInvitationCode(String invitationCode) 
    {
        this.invitationCode = invitationCode;
    }

    public String getInvitationCode() 
    {
        return invitationCode;
    }

    public void setParentInvitationCode(String parentInvitationCode) 
    {
        this.parentInvitationCode = parentInvitationCode;
    }

    public String getParentInvitationCode() 
    {
        return parentInvitationCode;
    }

    public void setIsDelete(Integer isDelete) 
    {
        this.isDelete = isDelete;
    }

    public Integer getIsDelete() 
    {
        return isDelete;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("unionid", getUnionid())
            .append("jsapiOpenId", getJsapiOpenId())
            .append("appOpenId", getAppOpenId())
            .append("userId", getUserId())
            .append("name", getName())
            .append("avatar", getAvatar())
            .append("phone", getPhone())
            .append("payPass", getPayPass())
            .append("balance", getBalance())
            .append("ticket", getTicket())
            .append("invitationCode", getInvitationCode())
            .append("parentInvitationCode", getParentInvitationCode())
            .append("isDelete", getIsDelete())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
